import LightAppManagement from '@/views/LightAppManagement';
import AddLightApp from '@/views/AddLightApp';

const routes = [
  {
    path: '/light_app',
    name: 'lightApp',
    component: LightAppManagement,
  },
  {
    path: '/light_app/add',
    name: 'addLightApp',
    component: AddLightApp,
  },
  {
    path: '/light_app/:id',
    name: 'editLightApp',
    component: AddLightApp,
  },
  {
    path: '/*',
    redirect: {
      name: 'lightApp',
    },
  }
];

export default routes;
